package com.lhz.project.system.service.dept;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lhz.common.page.BaseQueryParam;
import com.lhz.common.page.NewPageBean;
import com.lhz.project.system.model.entity.dept.Dept;
import com.lhz.project.system.model.param.dept.DeptParam;
import com.lhz.project.system.model.vo.dept.DeptTreeVo;

import java.util.List;

/**
 * @author LiHuaZhi
 * @since 2020-06-12 22:09:34
 */
public interface DeptService extends IService<Dept> {

    Dept selectByPrimaryKey(Integer id);

    NewPageBean<Dept> listDept(BaseQueryParam param);

    int insert(DeptParam param);

    int updateByPrimaryKey(DeptParam param);

    int deletePhyByPrimaryKey(Integer id);

    int deletePhyByPrimaryKeys(List<Integer> ids);

    //树形部门
    List<DeptTreeVo> treeDept();
}